package com.zxy.ziems.server.alarm.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxy.btp.mybatis.base.BaseEntity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 告警记录
 * @author chdzq
 * @create 2023/4/12
 */
@TableName("t_alarm_record")
public class AlarmRecordEntity extends BaseEntity {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 设备ID主键
     */
    private String deviceId;

    /**
     * 设备编码
     */
    private String deviceCode;

    /**
     * 设备类型Code
     */
    private String deviceTypeCode;

    /**
     * 告警类型Id
     */
    private String alarmTypeId;

    /**
     * 告警时候的设备属性Id
     */
    private String deviceDataTypeId;

    /**
     * 告警的数据
     */
    private BigDecimal alarmValue;

    /**
     * 告警时间
     */
    private LocalDateTime alarmTime;

    /**
     * 告警内容
     */
    private String alarmContent;

    /**
     * 记录是否处理了 1是已经处理 0是未处理
     */
    private Integer processStatus;

    /**
     * 处理意见内容
     */
    private String processContent;

    /**
     * 处理ID
     */
    private String processId;

    /**
     * 处理人ID
     */
    private String processUserId;

    /**
     * 处理时间
     */
    private LocalDateTime processTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceTypeCode() {
        return deviceTypeCode;
    }

    public void setDeviceTypeCode(String deviceTypeCode) {
        this.deviceTypeCode = deviceTypeCode;
    }

    public String getAlarmTypeId() {
        return alarmTypeId;
    }

    public void setAlarmTypeId(String alarmTypeId) {
        this.alarmTypeId = alarmTypeId;
    }

    public String getDeviceDataTypeId() {
        return deviceDataTypeId;
    }

    public void setDeviceDataTypeId(String deviceDataTypeId) {
        this.deviceDataTypeId = deviceDataTypeId;
    }


    public BigDecimal getAlarmValue() {
        return alarmValue;
    }

    public void setAlarmValue(BigDecimal alarmValue) {
        this.alarmValue = alarmValue;
    }

    public LocalDateTime getAlarmTime() {
        return alarmTime;
    }

    public void setAlarmTime(LocalDateTime alarmTime) {
        this.alarmTime = alarmTime;
    }

    public String getAlarmContent() {
        return alarmContent;
    }

    public void setAlarmContent(String alarmContent) {
        this.alarmContent = alarmContent;
    }

    public Integer getProcessStatus() {
        return processStatus;
    }

    public void setProcessStatus(Integer processStatus) {
        this.processStatus = processStatus;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getProcessUserId() {
        return processUserId;
    }

    public void setProcessUserId(String processUserId) {
        this.processUserId = processUserId;
    }

    public LocalDateTime getProcessTime() {
        return processTime;
    }

    public void setProcessTime(LocalDateTime processTime) {
        this.processTime = processTime;
    }

    public String getProcessContent() {
        return processContent;
    }

    public void setProcessContent(String processContent) {
        this.processContent = processContent;
    }
}
